﻿using Anke.SHManage.Model.FixedAssetsModel;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Linq;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.Model.BasicEventInfo
{
    public class DataBase : DataContext
    {

        #region 基础信息
        /// <summary>
        /// 人员表
        /// </summary>
        public Table<PersonInfo> PersonInfo;
        /// <summary>
        /// 任务表
        /// </summary>
        public Table<TaskAmbulanceInfo> TaskAmbulanceInfo;
        /// <summary>
        /// 任务出车人员表
        /// </summary>
        public Table<TaskPersonLinkInfo> TaskPersonLinkInfo;
        /// <summary>
        /// 车辆状态时间表
        /// </summary>
        public Table<AmbulanceStateTimeInfo> AmbulanceStateTimeInfo;
        /// <summary>
        /// 修改记录表
        /// </summary>
        public Table<ModifyRecordInfo> ModifyRecordInfos;
        /// <summary>
        /// 修改记录类型字典表
        /// </summary>
        public Table<ModifyRecordTypeInfo> ModifyRecordTypeInfo;
        /// <summary>
        /// 事件信息表
        /// </summary>
        public Table<AlarmEventInfo> AlarmEventInfo;// 2016-10-26
        /// <summary>
        /// 受理信息表
        /// </summary>
        public Table<AcceptEventInfo> AcceptEventInfo;// 2016-10-30
        #endregion

        #region 固定资产 add2019-11-06 plq

        /// <summary>
        /// 固定资产基本信息表
        /// </summary>
        public Table<FIXED_MatetialInfo> FIXED_MatetialInfo; //2019-10-17 plq

        /// <summary>
        /// 固定资产报废申请单记录表
        /// </summary>
        public Table<FIXED_ScrapInfo> FIXED_ScrapInfo; //2019-10-17 plq

        #endregion

        public DataBase(string connection) : base(connection) { }
        public DataBase(IDbConnection con) : base(con) { }
    }
}
